<script>
import TabBar from './components/tarBar.vue'
export default {
  components:{
      TabBar
  },

  setup() {
    
    return {
      
    }
  },

  
}
</script>

<template>
  <div class="main">
    <router-view v-slot="{ Component }" >
      <keep-alive >
        <component :is="Component" :key="$route.name" v-if="$route.meta.keep"></component>
      </keep-alive>

        <component :is="Component" :key="$route.name" v-if="!$route.meta.keep"></component>
    </router-view>

    <!-- <router-view v-if="!$route.meta.keep"></router-view> -->

    <TabBar v-show="$route.meta.footshow" />
  </div>
  
</template>

<style lang="scss" scoped>
@import "./assets/css/base.css";

</style>
